<?php
include "config.php";//apikey配置文件
include "jd/JdClient.php";//请求文件
include "jd/RequestCheckUtil.php";//请求文件
include "jd/request/UnionOpenActivityQueryRequest.php";//接口参数

$c = new JdClient();
$c->appKey = $ApiConfig["AppKey"];
$c->appSecret = $ApiConfig["AppSecret"];

$req = new UnionOpenActivityQueryRequest();
$activityReq= array();
$activityReq["pageIndex"]=1;
$activityReq["pageSize"]=20;
$activityReq["poolId"]=1;//活动物料ID，1：营销日历热门会场；2：营销日历热门榜单；6：PC站长端官方活动
$activityReq["activeDate"]="20211211";//按单个日期查询活动，查询日期范围为过去或未来15天。建议按日期依次查询当天及未来的活动
$req->setActivityReq($activityReq);
// $req->setVersion("1.0");
$resp = $c->execute($req);
print_r($resp);